package com.hopu.dxhouse.mapper;

import com.hopu.dxhouse.entity.MyEmp;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * @Package: com.hopu.dxhouse.mapper
 * @ClassName: MyEmpMapper
 * @Author: Administrator
 * @CreateTime: 2020/10/19 16:57
 * @Description:
 */
public interface MyEmpMapper {
     /**检查用户名是否存在*/
     @Select("SELECT * FROM myemp WHERE ename=#{ename}")
     MyEmp checkEname(@Param("ename") String ename);

     /**验证用户名和密码是否正确*/
     @Select("SELECT * FROM myemp WHERE")
     MyEmp checkEnameAndEpsw(String ename, String epsw);
}
